package com.tcm.ucenter.mapper;


import com.tcm.ucenter.domain.entity.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    /**
     * 删除会员
     *
     * @param userId 主键id
     * @return
     */
    int deleteByUserId(Long userId);

    int deleteLogicByUserId(Long userId);

    int insert(User record);

    User findByUserId(Long userId);

    int update(User record);

    List<User> listUserPage(Map<String, Object> maps);

    List<User> listUserByUserIds(List<Long> userIds);

    int countUser(Map<String, Object> maps);
}